<!DOCTYPE HTML>
<head>
    <title>趣链库-做有趣链接的网站</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="趣链库，有趣，链接，有趣链接，网站链接" />
    <meta name="description" content="趣链库，有趣，链接，有趣链接，网站链接" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="/css/style.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="/css/slider.css" rel="stylesheet" type="text/css" media="all"/>
    <script type="text/javascript" src="/js/jquery-1.9.0.min.js"></script>
    <script type="text/javascript" src="/js/move-top.js"></script>
    <script type="text/javascript" src="/js/easing.js"></script>
    <script type="text/javascript" src="/js/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
    </script>
</head>
<body>
<div class="header" style="margin-bottom: 2px">
    <!--
    <div class="headertop_desc">
        <div class="wrap">
            <div class="nav_list">
                <ul>
                    <li><a href="/site/index">首页</a></li>
                    <li><a href="/site/setmap">Sitemap</a></li>
                    <li><a href="contact.html">联系我们</a></li>
                </ul>
            </div>
            <div class="account_desc">
                <ul>
                    <li><a href="contact.html">注册</a></li>
                    <li><a href="contact.html">登录</a></li>
                    <li><a href="preview.html">Delivery</a></li>
                    <li><a href="#">Checkout</a></li>
                    <li><a href="#">我的账户</a></li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    -->
    <div class="wrap">
        <div class="header_top">
            <div class="logo">
                <a href="/site/index"><img src="/images/logo.png" alt="趣链库"/></a>
            </div>
            <div class="header_top_right">
<!--                <div class="cart">-->
<!--                    <p><span>search</span><div id="dd" class="wrapper-dropdown-2"> (empty)-->
<!--                        <ul class="dropdown">-->
<!--                            <li>你最近没有进行搜索</li>-->
<!--                        </ul></div></p>-->
<!--                </div>-->
                <div class="search_box">
<!--                    <form target="_blank" action="#">-->
                        <input type="text" class="keyword" value="<?=!empty($_GET['keyword']) ? $_GET['keyword'] : ''?>" placeholder="请输入关键字"><input type="submit" class="search_submit" value="">
<!--                    </form>-->
                </div>
                <div class="clear"></div>
            </div>
            <script type="text/javascript">
                $(".search_submit").click(function(){
                    var str = $(".keyword").val();
                    var url = "/search?page=1&keyword="+str;
                    window.open(url);
                });
                function DropDown(el) {
                    this.dd = el;
                    this.initEvents();
                }
                DropDown.prototype = {
                    initEvents : function() {
                        var obj = this;

                        obj.dd.on('click', function(event){
                            $(this).toggleClass('active');
                            event.stopPropagation();
                        });
                    }
                }

                $(function() {

                    var dd = new DropDown( $('#dd') );

                    $(document).click(function() {
                        // all dropdowns
                        $('.wrapper-dropdown-2').removeClass('active');
                    });

                });
            </script>
            <div class="clear"></div>
        </div>
        <?php if(Yii::$app->controller->action->id == 'index'){?>
            <div class="header_bottom">
            <div class="header_bottom_left">
                <div class="categories">
                    <ul>
                        <h3>趣链分类</h3>
                        <?php if(!empty($this->context->menu))foreach ($this->context->menu as $item) {?>
                        <li>
                            <a href="/list_<?=$item['id']?>_1_1_0"><?=$item['name']?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <?=$item['sub_name']?>
                            </a>
                        </li>
                        <?php }?>
                    </ul>
                </div>
            </div>
            <div class="header_bottom_right">
                <!------ Slider ------------>
                <div class="slider">
                    <div class="slider-wrapper theme-default">
                        <div id="slider" class="nivoSlider">
                            <img src="/images/1.jpg" data-thumb="/images/1.jpg" alt="" />
                            <img src="/images/2.jpg" data-thumb="/images/2.jpg" alt="" />
                            <img src="/images/3.jpg" data-thumb="/images/3.jpg" alt="" />
                            <img src="/images/4.jpg" data-thumb="/images/4.jpg" alt="" />
                            <img src="/images/5.jpg" data-thumb="/images/5.jpg" alt="" />
                        </div>
                    </div>
                </div>
                <!------End Slider ------------>
            </div>
            <div class="clear"></div>
        </div>
        <?php }?>
    </div>
</div>
<div class="text-center text-red" id="marquee">
    <marquee scrollamout="2" direction="left">
        <p style="font-size: 28px;">最新数据统计：   1580 位站长加入 13240 个优秀网站    365个待审网站</p>
    </marquee>
</div>
<!------------End Header ------------>
<?php if(Yii::$app->controller->id != 'user'){?>
    <?= $content ?>
<?php }?>
<div class="footer">
    <div class="wrap">
        <div class="section group">
            <div class="col_1_of_4 span_1_of_4">
                <h4>关于我们</h4>
                <ul>
                    <li><a href="#">关于我们</a></li>
                    <li><a href="#">客户服务</a></li>
                    <li><a href="#">高级搜索</a></li>
                    <li><a href="#">本站规则</a></li>
                </ul>
            </div>
            <div class="col_1_of_4 span_1_of_4">
                <h4>友情链接</h4>
                <ul>
                    <li><a href="http://www.huawenxuan.com">华文轩小说</a></li>
                    <li><a href="http://www.kumijie.com">酷米网</a></li>
                    <li><a href="http://www.dingtao.xyz">风叶博客</a></li>
                    <li><a href="http://www.fangdaishe.com">放贷社</a></li>
                </ul>
            </div>
            <div class="col_1_of_4 span_1_of_4">
                <h4>我的账户</h4>
                <ul>
                    <li><a href="#">个人中心</a></li>
                    <li><a href="#">提交中心</a></li>
                    <li><a href="#">认领中心</a></li>
                    <li><a href="#">消息提醒</a></li>
                </ul>
            </div>
            <div class="col_1_of_4 span_1_of_4">
                <h4>联系方式</h4>
                <ul>
                    <li><span>+86-159-88160446</span></li>
                    <li><span>QQ:804413587</span></li>
                    <li><span>微信:ding-ta</span></li>
                </ul>
                <div class="social-icons">
                    <h4>联系我们</h4>
                    <ul>
                        <li><a href="#" target="_blank"><img src="/images/facebook.png" alt="" /></a></li>
                        <li><a href="#" target="_blank"><img src="/images/twitter.png" alt="" /></a></li>
                        <li><a href="#" target="_blank"><img src="/images/skype.png" alt="" /> </a></li>
                        <li><a href="#" target="_blank"><img src="/images/linkedin.png" alt="" /></a></li>
                        <div class="clear"></div>
                    </ul>
                </div>
            </div>
        </div>
        <div class="copy_right">
            <p>Copyright &copy; 2014.Company name All rights reserved.More Templates <a href="http://www.cssmoban.com/" target="_blank" title="趣链库">趣链库</a></p>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $().UItoTop({ easingType: 'easeOutQuart' });
    });
</script>
<a href="#" id="toTop"><span id="toTopHover"> </span></a>
</body>
</html>

